package it.maggioni.struts2.actions;

import com.opensymphony.xwork2.Action;

public class CallMethodAction implements Action {

	private String methodName;

	public String execute() throws Exception {
		setMethodName("execute");
		return SUCCESS;
	}
	
	public String method1() {
		setMethodName("uno");
		return SUCCESS;
	}
	
	public String method2() {
		setMethodName("due");
		return SUCCESS;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

}
